<?php

class User_m extends CI_Model {

	function __construct() {
		parent :: __construct();
	}

	function check_login($username, $userpwd) {
		$query = $this->db->get_where('admin', array (
			'username' => $username,
			'passwd' => $userpwd
		));
		return $query->row();
	}
}
?>
